package com.doubi.service.impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.doubi.entity.Tagtable;
import com.doubi.mapper.TagtableMapper;
import com.doubi.service.TagtableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TagtableServiceImpl extends ServiceImpl<TagtableMapper,Tagtable> implements TagtableService {
    @Autowired
    private TagtableMapper tagtableMapper;

    @Override
    public Integer iftagContent(String tagContent) {
        return tagtableMapper.iftagContent(tagContent);
    }

    @Override
    public boolean updateTagNum(String tagnum, Integer tid) {
        Integer i = tagtableMapper.updateTagNum(tagnum, tid);
        if (i>0){
            return true;
        }
        return false;
    }
}
